package com.ss.android.model;

public enum ItemType {
    IMAGE(1),
    VIDEO(2),
    ESSAY(3),
    ARTICLE(4),
    ACTIVITY(5),
    TOPIC(6);

    public static final int V_ACTIVITY = 5;
    public static final int V_ARTICLE = 4;
    public static final int V_ESSAY = 3;
    public static final int V_IMAGE = 1;
    public static final int V_TOPIC = 6;
    public static final int V_VIDEO = 2;
    final int nativeInt;

    private ItemType(int i) {
        this.nativeInt = i;
    }

    public static ItemType fromValue(int i) {
        switch (i) {
            case 1:
                return IMAGE;
            case 2:
                return VIDEO;
            case 3:
                return ESSAY;
            case 4:
                return ARTICLE;
            case 5:
                return ACTIVITY;
            case 6:
                return TOPIC;
            default:
                return null;
        }
    }

    public final int getValue() {
        return this.nativeInt;
    }
}